<?php

	$listid 		= gpc_getStringArray("listid");
	$liststatus 	= gpc_getStringArray("liststatus");

	$countlist = count($listid);
   // print_r($liststatus);exit;

	for ($i = 0; $i < $countlist ; $i ++)
	{
		$sql_update = "UPDATE  tblcustomtourmap SET ";
		$sql_update.=" iStatus	 = '$liststatus[$i]'";
		$sql_update.=" WHERE  iId = $listid[$i]";

		$dbsql->query($sql_update);
	}


	//Insert_Tracking("Update Status ");

	page_transfer("Update Status Success !",$pagetr);

	exit();

?>